package com.situ.vivamarket.dao;

import com.situ.vivamarket.model.front.WishlistItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WishlistDao {
    int insert(WishlistItem washlist);
//    根据唯一项查找收藏，可以是memId+goodsId
    WishlistItem findByUnique(WishlistItem washlist);

    List<WishlistItem> findByMemberId(Integer memberId);

    int deleteById(Integer id);
}

